TensorFlow 2はcolab googleとwindows 10でバージョンを表示しません (TensorFlow 2 not show the version in colab google and windows 10)


問題の説明

TensorFlow 2はcolab googleとwindows 10でバージョンを表示しません (TensorFlow 2 not show the version in colab google and windows 10)

Google Colab に TensorFlow バージョン 2 をインストールします:

!wget https://developer.nvidia.com/compute/cuda/10.0/Prod/local_installers/cuda‑repo‑ubuntu1604 ‑10‑0‑local‑10.0.130‑410.48_1.0‑1_amd64 ‑O cuda‑repo‑ubuntu1604‑10‑0‑local‑10.0.130‑410.48_1.0‑1_amd64.deb !dpkg ‑i cuda‑repo ‑ubuntu1604‑10‑0‑local‑10.0.130‑410.48_1.0‑1_amd64.deb !apt‑key add /var/cuda‑repo‑10‑0‑local‑10.0.130‑410.48/7fa2af80.pub !apt ‑get update !apt‑get install cuda !pip install tf‑nightly‑gpu‑2.0‑preview

しかし、バージョンを見つけようとすると、表示されます

1.13.0‑dev20190116

また、tf.enable_eager_execution() と NameError: name 'layers' is not defined を使用したいときにエラーが発生します


リファレンスソリューション

方法 1:

Try like this:

!pip install tf‑nightly‑2.0‑preview
import tensorflow as tf

As explained by Luca to check the version you need:

print(tf.__version__)

(by Farshid PirahanSiahprosti)

リファレンスドキュメント

  1. TensorFlow 2 not show the version in colab google and windows 10 (CC BY‑SA 2.5/3.0/4.0)

#tensorflow #Python #tensorflow2.0






関連する質問

3d_transposed_convolution レイヤーを使用したアップサンプリング (Upsampling using 3d_transposed_convolution layers)

TensorFlow 2はcolab googleとwindows 10でバージョンを表示しません (TensorFlow 2 not show the version in colab google and windows 10)

カスタム モデルで Keras マルチ GPU モデルが失敗する (Keras multi-gpu model fails for a custom model)

3D ボリュームから 2D プレーンに移行するには、CNN でどの戦略を使用する必要がありますか? (What strategy should I use in my CNN to go from a 3D volume to a 2D plane?)

ケラス多項式特徴レイヤー (keras polynomial feature layer)

サンプリングされたソフトマックス損失評価コードは機能しますが、関数呼び出しの結果は ValueError になります (Sampled softmax loss eval code works but function call results in ValueError)

テンソルフローで画像のサイズを変更するときの OOM エラー (OOM error when resizing images in tensorflow)

グラデーションクリッピングを使用した敵対的テキスト生成、依然としてグラデーション爆発に直面 (Adversarial text generation with gradient clipping, still facing gradient explosion)

サンプルの重みがニューラル ネットワークを破壊するのはなぜですか? (Why Are My Sample Weights Breaking My Neural Network?)

より大きなデータのモデルのみの損失増加 (Loss Increasing for model only for bigger data)

ランダム回転関数テンソルフロー (Random rotation function tensorflow)

テンソルフロー データセットのすべての y に一意の ID を追加します (Add a unique id to every y of a tensorflow dataset)







コメント